modified calcrcgw