Selberg's trace formula and spectrum