put gravity reading in init