adding writer.go