print trace inside search