collistion detection.