Put codes in the right place