Maybe you want to use res[0] here :? just asking... clarify if you want to use the full res array please