fix for some warning from rubocop