sort out call initiation code