handling the no data case