first step to fix height map