remove unused write method