rename writer method