added warning if data is not in correct format