made the invalid endpoint error pass