change combineStocks
add writeCombinedStocks