took out asXyz in write.xyz