updated comment implementation in scanner