updating market.cpp