improving led behaviour