checking for data