simplified frame search, improved performance