add writePoint