remade gem file