had to add +1 in another place for the coordinates to all start from 1
cleanup