extracted functionality as "PrepareForCall"