removed invoking_call definitions at the start of functions. This improves overheads.