remember to use the write object