cleans up some detritus