modified cache helper