removed density from the histogram function