refactoring nimoy