fitting to command pattern