corrections and garbage removal