add get-function for main branch