added debugging to clearing fielddata