Traying to locate BAD ALLOCATION error