why are we creating the criteria twice? why can't we use the first one?