added bash in residual amount and residual percentage when they are empty