recoded  dataset function

used jersey's functions