sentences:  Finally, he agreed to a treaty which accepted the right of Bahlul Lodi over Shamsabad.But when Bahlul tried to take possession of Shamsabad, he was opposed by the forces of Jaunpur.At this juncture, Mahmud Shah died and he was succeeded by his son Bhikhan, who assumed the title of "Muhammad Shah".