updated the way the command is executed