before adding an intent