works for both wfs