edit preferred translator funciton