finish the codes