implemented filtration by availability periods