add puts for debugging