try to change the parameter class when needed