implemented state variable filter