added template with list of objects. Not clean