fromOnEvent method