cleaning up problematic script