clean up chain