take params to command