added write translates to file