adding minimal number of lights needed