small harmonic function update