by using targets or reference patterns