added psth alignment and fixed showing psth for tp