fixed ridge comparison -- it works now!
merged