change base ratio to tmap
changed tmap for base ratio and var string