setSource method