Potato implementation.
minor fix and addition to potato implementation