refactor people model