added data check