added call to tracing
completed trace implementation