updated find all subs to include minimum length