refactoring + BanEntity