modified working based code Tokenizer (#define)