removing redundant endpoints