master_call function