modify writer