refactored translat
refactor test