fixed  NO_DATA not defined