general cleaning and removal of sequences