Handled different data cases