watch out for end of seq in findposition