checking all the codes