add CFSAG code to updateBlock func