upstream midstream y downstream