collision detection in da frontend