working on populating templates