midwife functions