added threshold for lazy loading