added finding of visits