replay for each function call