fixing syntax error and adding subcommand to command()