some changes to errors