added code to account for no data returned from service