adding prints to find trap