added a puts for debug purpose