added offset to gauge functions