adding script for bals rank scaling