size is a local copy and also a const.