added some compiling func to menu::2