traces on bimodules