Trans fats are created when hydrogen is added to vegetable oil , solidifying it and increasing the shelf life of certain products .