added command,function arrays