removed useless code about extends bans