reduce the codes, remove the no nessesary of info and codes