clean up rubocop warnings and error