Normailzation before matching