fixed code style issues reported by rubocop