salah al'din had encouraged the learned men to visit damascus for study - there were many madrasahs throughout the city - and as such they enjoyed special privileges and were allowed to wander unhindered .