finish blog function