add collision detection for interfaces