cuda trace function part of the way implemented, checking in