this is to ensure that trace is valid?