tweaking pivot logic for tim