before apply comment API