generating inputs based on templates