update block pattern