implemented red/white filtering with session variables