scripts to calculate the size.