stopped .valid and .invalid from returning duplicates
Merge pull request #144 from vaughankg/valid_invalid

stopped .valid and .invalid from returning duplicates