fixed the getdataview func