reducing the number of prints during debugging