change the behavior of retry