replace word royalty with earnings