contact detection is modified