we were checking for the name not the path