changed connection to have 3 integers for the point