added led and alarm