implementing fem