added comments for cleanup and clone