refactor to accomodate language translator