writes max id from label volume