point2f is now deprecated