some changes to LED helper