error function renamed