remove unused variables & packages