modified check_vacancy format