added parameter visible to function GetSources