tpo in code