collecting error information;