error handling for blank data