--changed distance threshold to 5cm