correct some syntax to pass rubocop