edited listWriter method.