bunch of progress working with coordinates