adding option to disable the sub total