fixes write name