get rid of temp memory