removed hash field
better handling of bad char detection in sequence