added cost randomisation changed