trying to fix the script problem