fixing Issue #6

* added output data will be checked if its has a valid format before reading it