Use getters in write()