about to refactor overflow issue for buy and sell