scanner class used parser