update get thumbnail function and the excerpt set