adds logic for isPartial