change cleanup procedure