I use baking spray with flour to grease my pans and my cakes rarely stick to the pan. You can also line the bottom of your pan with parchment paper. I don’t use butter or flour but know plenty of people who use those methods with success too.