add iterative solution for subset