tweaking heightBias function