added puts to check logs