preparing application