changed some errorstates