fixed access visit record function