simplify wriite