getting rid of unnecessary file and its reference