properly initialize zero values on append