renaming the minmax function resolves this issue
renaming the minmax function resolves this issue