profile every 5 iteration