updating retry def