added method to get name of originating function