Elements such as argon or phosphorus are preferably added to the amorphous semiconductor film serving as a gettering sink since distortion is generated in the amorphous semiconductor film by adding the elements, which leads to easy trapping of the metal element.