removed obst detection code