changed session.clear and added sold out feature