cleanup and writeup