cleaning up sequences