need to figure out why size doesnt increase outside function