What determines the type of fossil that is formed?