turned echo = TRUE to show all code