Patch 1

Modified rowEnds to contain actual agle of view for better recongition when function stops