wrap function into trace wrappers