screwed up the parameter math