added HOH angle code