added a function to override the guest function