setting application to expire