write before