fixing inbound_parameters scope issue in a couple functions