I am confused here and hope to get help from you physicians..the assistant in the uni could not help me.. when we have a junction between two materials with different fermi levels, for example a metal and a semiconductor, we say the fermi level of the semiconductor gets shifted till it's equal to the work function of the metal and as a result the band diagram of the semiconductor gets bent. and now the conduction band for example through the semiconductor far from the contact is shifted by the value of the barrier. now is this true? I suppose the energy levels of the semiconductor far from the contact shall not be aware of this contact and it makes no sense that the energy levels through the material, how ever long it is, will be different from a neutral semiconductor without a contact.. can somebody tell me what is going on? thanks.