use parse to store visit history instead of in-memory array