working on the namespace matching and phraser