added dplyr internal functions