change trace() to traceit() so that it doesn't conflict with matrix trace operation.