added trace to debug