added condLocalGreater
fixed dictRevenue function