added new resize mode.