sold out logic