updated accel towards position function for cells