added function to compute simple data