added rebar detection