added depreciation warning + fixed error is function call argument
order