handle filtering amount