how appeals work