added accepting the offers when vacancies are inactive