added input in scanner and parser