added an offset parameter (essentially header = TRUE)