fixed bug in second constructor that didn't use hte passed in datasource