simple filter to write result into the response