slow histogram rectangle