added some changes to visit feature