made write() future more specific