working on harmonic localization logic