refactoring a tag and cache placement