fixed maxima fn passing