added a paramter for changing the market location