added handling when no data received