add check for data