updating ratchet