elements of Rand's characterization were developed by Whitney and Shatner; Whitney would go to Shatner's side when their characters were put in danger – in response, Shatner would put his arms around her, such as in "Balance of Terror". The character was written out of the episode "Dagger of the Mind", which Whitney attributed to the romantic liaison that Kirk has with the female lead in that episode being so overt that it would have caused issues for later plots. This was because the script had Kirk and the female lead sleep with each other. Although Whitney found it difficult to watch as her character had been removed from the episode, she understood why. Part of her outfit was dictated by attempting to increase the duties of the Captain's Yeoman on screen. In order to provide support while part of an away team on a planet, Roddenberry suggested that she could wear a device on an over-the-shoulder strap which she could use as an electronic camera. He also suggested immediately that it could be expanded in order to be sold as a toy for young girls. This was part of the development process that led to the creation of the tricorder. Departure Grace Lee Whitney was released during the filming of the first season. The official reason given for Whitney's departure from the show was that her character limited romantic possibilities for Captain Kirk. This idea was supported by Whitney, saying "They didn't want to give the fans the idea [Kirk] was in love with Janice Rand. That would limit him. They wanted him to go out and fool around. So, I was axed." But the real reason was that the production had financial issues, with the acquisition of new crew members and the increase in popularity of Doctor Leonard McCoy meaning that those salaries needed to come out of the original budget. In Justman and Herb Solow's 1996 book Inside Star Trek, they stated that following a discussion between Roddenberry, Solow and Bernie Weitzman in which they discussed her contract, they decided to terminate it because of Whitney's limited appearances and the financial issues that the series was having. The decision was attributed elsewhere in David Alexander's 1995 authorized biography of Gene Roddenberry, Star Trek Creator, which said that during the first batch of episodes, casting director Joseph D'Agosta reviewed the contracts for the main actors due to rising