halfway modify simple and powerset class