rubocop errors corrected