fixed grep problems for beginning of sequence