exchange margin with padding