updated the sourcing functions