writes text