callback function for int64