fixed 2 compiler warnings about unused variables and  parameters