added printout for bad events