limit method in dataset class