fix RuboCop warnings