restore resize routine for plain