addref to the global var when returning it