histogram improvements