We study the medium effects on the selection of sequences in protein folding by taking into account surface potential in hydrophobic-polar model. Our numerical calculation demonstrates that the surface potential enhances the average gap for the highly designable structures. It also shows that the most stable structure may be no longer the most stable one if the medium is changed.