add command's function