running script will only work once