regroup all the codes