adding in some print statements to see whats wron