memory temp added to cleanup