added function to Applicationtype model