small change to write ascii grid