reproduction mode of flatworm