re-align all codes