removal of unused variables