changed condition for showing datasets