improved performance with 'horizontal rectangles technique'