adding make_command function