retry for code block