add showBlock func