implement adding a point