fix warning from compiler: remove unused variables