fixed creation of subproblems