different approach for templates instead of cloning descriptor