resize and then equalizae