removing subjects with few instances