implemented get revenue functionality