made ir.update_inputs() not return anything; it modifies its arg