edit problems with cases