implemented execute_command