adding scanmatching