removing unexpected paths