make fem algorithm respect parameters