adding puts for debugging