getFlows method was updated