add move point to point function