getting rig of irrelevant files