added "memory" function to re-use a selection WITHIN A SINGLE TEMPLATE.