minor changes to errors