create code by auto