added error function and corresponding jacobinas