fixed response writing