detecting if contact ends in sunlight works now