change parameter according to some stats
merged