prepared for data subsets - corrected