cleanup states