removing unused variables and files