updated to portfolio script from jeremy