layers of rock before gold ore