using Rails.logger instead of puts