beginning of cleanup process