don't query db twice for the same