refactor youtube compound