Effective potential in glass forming liquids