improving scan_ analysis