create histrogram