released query by time
added debug method