call get funciton when add-function be called