level update and cleaning