functions for visitor and officials