add ObtainAccount function