added the call function to output function console