performed some cleanup