working on the lookback script