removed flawed precision detection function