move function into compilation database