added clear endpoint