trying end point method