added time compl. to query