added overlap check for cache