check the codes