update blog code