fix set method parameters method