updated code for blog entry