Compiler warning fixes method parameters