finished implementing previous idea (yet to be tested)
possibly fixed distance to point