add prints to find error