localanalysis and globalanalysis