adds distance dependent gravity