added led to indicate states