modified pretict method and modified parser output