output "a" for read