collision detection uses mask