recreated partizan solution