using small white islands as the index, it's faster than searching all of the templates.