enhancement to fem2d