doc string for compilation function