minor changes for errors