saner init & update code for height map