just did this for someone else on another forum, c&c