refact base model