refactoring blockType
refactoring blockType