checked for null data received