fix wrong declre function