removing unused variables warning