added traces for a better understanding of what's happening