can now recognize errors due to memory being exceeded