add filter function to LevelStatement