improve collision detection (not perfected yet)