init
tested resizing