removing duplicate templates