Here´s the rule as written in the sporting regs,
28.6 d
At each Event seals may be broken once, under supervision and at any time prior to the
second day of practice, for the sole purpose of changing gear ratios and dog rings
(excluding final drives or reduction gears). Competitors must inform the FIA technical
delegate which ratios they intend to fit no later than two hours after the end of P2.
However, one additional change of ratios and dog rings will be permitted if a gearbox
change is necessary on the first day of practice before the end of P2.
Gear ratios and dog rings (excluding final drives or reduction gears) may also be
changed under supervision for others of identical specification at any time during an
Event provided the FIA technical delegate is satisfied there is evident physical damage
to the parts in question and that such changes are not being carried out on a systematic
basis
And for Massa replacing engine...bit strange.
The engine of car number 4 has been replaced with the approval of the FIA technical delegate following a
written request from the team concerned for a previously used one and this being in accordance with
Article 34.1 of the 2013 Formula One Sporting Regulations.
Not sure where it says you can replace an engine in article 34.1
34.1
Every team must provide the FIA technical delegate with a suspension set-up sheet for both of
their cars before each of them leaves the pit lane for the first time during the qualifying
practice session.
28.4 e
If an engine is changed in accordance with Article 34.1 the engine which was replaced
may not be used during any future qualifying session or race with the exception of the
last Event of the Championship
"If the only thing keeping a person decent is the expectation of divine reward, then brother that person is a piece of sh*t"