although resizing behaves correctly (i.e. doesnt crash) it doesnt produce the output it should