update block type