swap short
corrected variance calc