fixed warnings about unused variables