tweaking ban functionality