change write function