converted result to data.frame and added names