changed scope to active and dont analyze state