updated oh distance code with distribution for number of H/O