removing unused paths