changing safetyDistance to 7