trying to fix geologic layer edges