quad for write() added