added empty data.frame conversion;