refactor of "content" variable