updated template to remove identifier; getting only distinct objects