for an electron to move from an energy level close to the nucleas to an energy level far from the neculus it would need to gain or lose energy