remove function to compare directories