adding endPoint codes