added some print statements and fixed stuff in pop hod