last working ver. do resize next time