create function get_pte_status