k > this.localmax
this is important.

the other stuff not that much but still nice to have i think.