finished TTT, refactor PRS