fixing gem stuff