change size and write working