solve gem problems