inserted safeguards to prevent errors when re-running normalization scripts