avoid to query nulled values