adding more detailed puts statements for debugging