out = before_tag

is fine.