add data frame get logical