error messages added and sequence checker