completed before starting queries