now the script should work