updated oh distance code