wokring finite element method. ready for submission