stub lose function