changed blog function