subtotal calculation added