You added `avg_elev`, but it looks like you don't use it. If so, remove it.