rewrote write method