rename getWriter to currentElement