local debugging funished and version frozen in function