entering & exiting function trace completed (need to test more)