pty structure