code format changes based on suggestions from rubocop