used lattice plot for the histogram it looks nicer