add some code about block analysis