stratified frequency fxns added