fixing the result parsing issue