workaround to deal with quantity arrays rejecting assignment