corrected qtsdk 4.7.2 formula to be keg only