How to use "guaranteeing" in a sentence

Sentences

After reviewing the chaos that he had inherited, the new head of network decided that even though Darkfall was an exciting script, he didn't want to make a movie "about little creatures living in the walls." He decided that we would film the other script I had done; for which I received primary credit but not sole credit because of Writers Guild rules virtually guaranteeing the first writer some kind of credit as long as that writer's drafts had been composed in one of the languages spoken on Earth.