changed functional subset to manual subset.
removed all instances of subset()