Adapted to corret thesis tex