implement command.