fixed some rubocop offences