logic here is backwards
Merge pull request #10 from michaelglass/wrong_logic

logic here is backwards