updating writer