changed sample-size to do sim and analysis