added newext build
made geom variable start at zero
minor