refactoring language model
language model refactored