using toPoint instead of point