remmoved nused variable for lf state