finalized clean up