change swap size calculation