original FEM program