done by PTY