call function and read variable methods