two functions: one that returns true, one that returns false