prepare retry structure