verified the results after code changes