updated leave class filter