fixed the check for data