add callback funtion to the project