wrote histogram