added cuda gravity