correcting logic in enhanceparameters