little changes for errors