renamed error functions