added time boundary functionality to search and retrieve