adding 3 arg constructor for ScannerType