pattern matching in parsed vacancy