trying to fix the script