change local var level to is_pte fixing compile error