cells containing a non metal rules
the metal which gives its away its electrons, has to be higher in the electrochemical series than the other substance so it can make an electric current.
again the further apart the metal and other substance are, the higher the voltage.