started implementing resize()