before apply