remove waterHeight function; adding in line seems to improve speed a bit