accept quantities or array, store quantities