before obstacle detection