checking errors 2