sequence cleanup