debuging print in batter place. And bug from previous commit fixed