fix to wh calculation