Ecological and behavioral interpretation of the fossil record