first subset working, terrible code