replacing Point2D with displacement