add the equal function to template