added the resize option