working gravity with timer