updated for 250 samples