updated script

still doesn't work, but maybe closer?