updated sources api snippet