added bash size function