getting first the  application