simplifying write