populate script to generate the elements to search