trimming full dataset