changes for rais demographics calculations