modify swap allocation