added led functionality