added the istruction to template matching