more functions for qpbpolyform