erasing unneccessary data