some data size changes and error exceptions