removed dead code from retry decorator