filter levels properly