added some disk scale length code