changing conditional statement in enhanceparameters