working out finding edges of TSR