improved creating null distribution with speed factor 2