modified Writer