removing unnecessary endpoints