Please do not abbreviate variable names: "res" should be "result".