error: invalid use of function: *functions.MaxSelector has no implementation for type string