removing filter casting nonsense