added blog logic