updated script to remove mistaken code coming from another script