typo fix + some print statements for debugging