add prints to find nans