add rarionalise-dot function