using map funciton to move results onto ko array