added error handling if not found application