removing files that were not legal