wrong parameter being passed