placeing histogram bars where they need to be