modified for unique & repeated visits