added no negative coordinates allowed