refactor params and translating