renamed frameResize to resize