added in offset for search