remodified the codes