adding traces