added arbitrary potential mode