made query sync to avoid showing too early