fix for call function