prettify and subset data