cleanUp code