handling empty source