add function to quetrace