fixed data type problem that caused rbind to introduce NAs; added subsetting rules