add collsion detection