modularized code, handle case where no data was available