minor modification to blogs code