removed beacon count condition