modified door led logic