update histogram scripts