If your potato cakes stuck to the pan, it's most likely because you didn't have the oil hot enough before adding the potatoes to the frying pan. Heat the oil first, then add the cakes.