implemented filtering on vacancy