regenerate all distributed codes