figure2 + proper resizing