changed parser.py for func
works for multiple print