query for entries only if not given