added more ql2 functions