add function all blocks