added bt_parent() function