Modify syntax to pass rubocop