updating latest blog code