modified Write type