fix qunatlib formula