added LED function