split QQ problem into parts