bugs in g3,g4 fixed