getCommand() written