small changes and visit records updated