pot vanishing code added