fixed functionality of vector of coordinates being passed around