missing write function