started ring detection. may use haugh transform