add single function for new seq detection

same as #866 for master branch.