add puts statement for debugging