added code for creating sources table